package com.example.hfSystem.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.example.hfSystem.entity.pojo.Config;
import com.example.hfSystem.dao.ConfigMapper;
import com.example.hfSystem.service.ConfigService;

import com.example.hfSystem.utils.PageUtils;
import com.example.hfSystem.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 配置文件表 服务实现类
 * </p>
 *
 * @author <a href="https://fengwenyi.com?fs=mpcg">Erwin Feng</a>
 * @since 2024-04-09
 */
@Service
public class ConfigServiceImpl extends ServiceImpl<ConfigMapper, Config> implements ConfigService {
    @Override
    public PageUtils queryPage(Map<String, Object> params, Wrapper<Config> wrapper) {
        Page<Config> page = this.selectPage(
                new Query<Config>(params).getPage(),
                wrapper
        );
        return new PageUtils(page);
    }
}
